﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kwan.Core;

namespace BG.Service
{
    public class LogWriterToDB : Log.ILogWriter
    {

        #region ILogWriter 成员

        public void Save(Log log, Kwan.Core.Log.Item item)
        {
            Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", item.Date, item.LogType, item.Type.Name, item.Message, item.ErrorStackTrace, item.Assembly.GetName().Name);
        }

        #endregion
    }
}
